package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperBasAcement implements Serializable {
    private Integer id;

    /**
     * 0--已经删除；1--正常显示
     */
    private Integer flag;

    private Date indate;

    /**
     * 创建者
     */
    private String author;

    /**
     * 公告的范围（0-所有；其他--部门id）
     */
    private Integer did;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 0--已经删除；1--正常显示
     */
    public Integer getFlag() {
        return flag;
    }

    /**
     * 0--已经删除；1--正常显示
     */
    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    /**
     * 创建者
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 创建者
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 公告的范围（0-所有；其他--部门id）
     */
    public Integer getDid() {
        return did;
    }

    /**
     * 公告的范围（0-所有；其他--部门id）
     */
    public void setDid(Integer did) {
        this.did = did;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", flag=").append(flag);
        sb.append(", indate=").append(indate);
        sb.append(", author=").append(author);
        sb.append(", did=").append(did);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBasAcement other = (SuperBasAcement) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()))
            && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        return result;
    }
}